@echo off
chcp 65001


curl -X POST -w %%{http_code} -s -o /dev/null  http://dc-app:9080/api/mp-integration/open/docker/restart/%1 > curl-result.txt

for /f  %%i in (' findstr /r "\<200\>"  curl-result.txt '  ) do set result=%%i

if  "%result%"  == "" (
    echo ==============================
    echo  "结束 %1 错误！"
    type curl-result.txt
    echo.
    echo ==============================
    pause
    exit(1)
)

echo "启动任务 %1 成功,请手动检查启动状态"

start "" "http://dc-app:9080/api/%1/health"
